package org.example.workbench.service.impl;

import org.example.workbench.domain.ContactsActivityRelation;
import org.example.workbench.mapper.ContactsActivityRelationMapper;
import org.example.workbench.service.ContactsActivityRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("ContactsActivityRelationService")
public class ContactsActivityRelationImpl implements ContactsActivityRelationService {
    @Autowired
    private ContactsActivityRelationMapper contactsActivityRelationMapper;

    @Override
    public int deleteRelationByContactsIdAndActivityId(Map<String, Object> map) {
        return contactsActivityRelationMapper.deleteRelationByContactsIdAndActivityId(map);
    }

    @Override
    public int insertManyByList(List<ContactsActivityRelation> contactsActivityRelationList) {
        return contactsActivityRelationMapper.insertManyByList(contactsActivityRelationList);
    }
}
